﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SalesModel
{
    [Serializable]
    public class Customer
    {
        private int id_customer;
        private String dni;
        private String address;
        private String email;
        private String phoneNumber;
        private int status;
        private DateTime regDate;
        private String name;
        private String fLastName;
        private String mLastName;
        private Sale sale;

        //Serialization methods

        public int IdCustomer
        {
            get { return id_customer; }
            set { id_customer = value; }
        }
        public String Dni
        {
            get { return dni; }
            set { dni = value; }
        }
        public String Address
        {
            get { return address; }
            set { address = value; }
        }
        public String Email
        {
            get { return email; }
            set { email = value; }
        }
        public String FLastName
        {
            get { return fLastName; }
            set { fLastName = value; }
        }
        public String MLastName
        {
            get { return mLastName; }
            set { mLastName = value; }
        }
        public String PhoneNumber
        {
            get { return phoneNumber; }
            set { phoneNumber = value; }
        }
        public int Status
        {
            get { return status; }
            set { status = value; }
        }
        public DateTime RegDate
        {
            get { return regDate; }
            set { regDate = value; }
        }
        public Sale Sale
        {
            get { return sale; }
            set { sale = value; }
        }

        //Normal methods
        public Sale getSale()
        {
            return sale;
        }
        public void setSale(Sale sale)
        {
            this.sale = sale;
        }
        public int getId_customer()
        {
            return id_customer;
        }
        public void setId_customer(int id_customer)
        {
            this.id_customer = id_customer;
        }
        public String getDni()
        {
            return dni;
        }
        public void setDni(String dni)
        {
            this.dni = dni;
        }
        public String getAddress()
        {
            return address;
        }
        public void setAddress(String address)
        {
            this.address = address;
        }
        public String getEmail()
        {
            return email;
        }
        public void setEmail(String email)
        {
            this.email = email;
        }
        public String getPhoneNumber()
        {
            return phoneNumber;
        }
        public void setPhoneNumber(String phoneNumber)
        {
            this.phoneNumber = phoneNumber;
        }
        public int getStatus()
        {
            return status;
        }
        public void setStatus(int status)
        {
            this.status = status;
        }
        public DateTime getRegDate()
        {
            return regDate;
        }
        public void setRegDate(DateTime regDate)
        {
            this.regDate = regDate;
        }
        public String getName()
        {
            return name;
        }
        public void setName(String name)
        {
            this.name = name;
        }
        public String getfLastName()
        {
            return fLastName;
        }
        public void setfLastName(String fLastName)
        {
            this.fLastName = fLastName;
        }
        public String getmLastName()
        {
            return mLastName;
        }
        public void setmLastName(String mLastName)
        {
            this.mLastName = mLastName;
        }
    }
}
